const initState = {};
const reducer = (state = initState, action) => {
  switch (action.type) {
    case 'SET_MENU':
      return {
        ...state,
        menu: action.payload,
      };
    default:
      return state;
  }
}
export default reducer;

export const fetchMenu = userId => ({
  type: 'FETCH_MENU',
  payload: userId,
});
